package com.gengdan.controller;

import com.gengdan.bean.UserInfoBean;
import com.gengdan.service.UserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.HashMap;

/**
 * @author Sun Mingshan
 * @Description 用户信息Controller
 * @date 2020/4/20 21:04
 */
@Controller
public class UserInfoController {

    @Autowired
    UserInfoService userInfoService;

    @RequestMapping("/select_PersonalInfo")
    @ResponseBody
    public HashMap selectPersonalInfo(UserInfoBean userInfoBean){
        return userInfoService.selectPersonalInfo(userInfoBean.getUserId());
    }
}
